package cn.good.yan.basics.t1;

import lombok.*;
import lombok.extern.slf4j.Slf4j;

/**
 * 1. 配置类
 *      实体类 - 使用 lombok
 * @author shengren.yan
 * @create 2023-09-27
 */
@ToString
@Data
//@AllArgsConstructor
//@NoArgsConstructor
@EqualsAndHashCode
@Slf4j
public class User {

    private String name;
    private Integer age;

    public User(){
        log.info("打印日志");
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
